/**
 * 系统路由
 */

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/systemConfig',
  name: 'system',
  meta: { title: '系统', icon: 'menuSystemSetting' },
  children: [{
    path: 'systemConfig',
    name: 'systemConfig',
    component: () => import('@/views/upms/systemSetting/systemConfig/index'),
    meta: { title: '参数配置', icon: 'menuSystemConfig' }
  }, {
    path: 'dataDict',
    name: 'dataDict',
    component: () => import('@/views/upms/systemSetting/dictionary/upmsDataDict'),
    meta: { title: '字典管理', icon: 'meunDataDict' }
  }, {
    path: 'categoryDict',
    name: 'categoryDict',
    component: () => import('@/views/upms/systemSetting/categoryDict/index'),
    meta: { title: '分类字典', icon: 'meunDataDict' }
  }, {
    path: 'quartzJob',
    name: 'systemQuartzJob',
    component: () => import('@/views/upms/systemSetting/quartzJob'),
    meta: { title: '定时任务', icon: 'menuQuartzJob' }
  }, {
    path: 'formDesign',
    name: 'systemFormDesign',
    component: () => import('@/views/business/designForm'),
    meta: { title: '表单设计', icon: 'menuQuartzJob' }
  }, {
    path: 'region',
    name: 'region',
    component: () => import('@/views/upms/systemSetting/region'),
    meta: { title: '行政区划', icon: 'menuRegion' }
  }, {
    path: 'app',
    name: 'appVersion',
    component: () => import('@/views/upms/systemSetting/appVersion/index'),
    meta: { title: 'APP版本', icon: 'menuApp' }
  }, {
    path: 'smsCode',
    name: 'smsCode',
    component: () => import('@/views/upms/systemSetting/smsCode'),
    meta: { title: '验证码', icon: 'menuSmsCode' }
  }]
}

export default systemRouter
